home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga News 95
/
Amiga News 95.iso
/
dpat
/
dpat48
/
dearch
/
sources
/
dearch_strings.h
< prev
next >
Wrap
C/C++ Source or Header
|
1993-11-14
|
10KB
|
334 lines
#ifndef DEARCH_STRINGS_H
#define DEARCH_STRINGS_H
/****************************************************************************/
/* This file was created automatically by CatComp.
* Do NOT edit by hand!
*/
#ifndef EXEC_TYPES_H
#include <exec/types.h>
#endif
#ifdef CATCOMP_ARRAY
#undef CATCOMP_NUMBERS
#undef CATCOMP_STRINGS
#define CATCOMP_NUMBERS
#define CATCOMP_STRINGS
#endif
#ifdef CATCOMP_BLOCK
#undef CATCOMP_STRINGS
#define CATCOMP_STRINGS
#endif
/****************************************************************************/
#ifdef CATCOMP_NUMBERS
#define MSG_MAINGADSOURCE 0
#define MSG_MAINGADDEST 1
#define MSG_MAINGAD20 2
#define MSG_MAINGAD30 3
#define MSG_MAINGADARCHI 4
#define MSG_MAINGADQUIT 5
#define MSG_MAINGADHIDE 6
#define MSG_MAINGADOK 7
#define MSG_ARCHIGAD00 8
#define MSG_ARCHIGADLIST 9
#define MSG_ARCHIGADOK 10
#define MSG_ARCHIGADDEL 11
#define MSG_ARCHIGADUSE 12
#define MSG_ARCHIGADADD 13
#define MSG_ARCHIGADSAVE 14
#define MSG_ARCHIGADEDIT 15
#define MSG_PREFSGADCANCEL 16
#define MSG_PREFSGADOK 17
#define MSG_PREFSGADEXT 18
#define MSG_PREFSGADCOM 19
#define MSG_PREFSGADREP 20
#define MSG_MAINASLSOURCE 21
#define ERROR_MAINASLSOURCE 22
#define MSG_MAINASLDIR 23
#define ERROR_MAINASLDIR 24
#define ERROR_MAINWINDOW 25
#define ERROR_MAINSOURCEFILE 26
#define ERROR_MAINDIR 27
#define ERROR_MAINNOTEXT 28
#define ERROR_MAINLIB 29
#define ERROR_MAINSETUP 30
#define ERROR_MAINWIND 31
#define ERROR_MAINPORT 32
#define ERROR_MAINBROKER 33
#define ERROR_MAINHOTKEY 34
#define ERROR_MAINCOM 35
#define MSG_TITLE_MAINWINDOW 36
#define MSG_TITLE_ARCHIWINDOW 37
#define MSG_TITLE_PREFSWINDOW 38
#define MSG_COPYRIGHT 39
#define MSG_USE 40
#define MSG_ACTIVE 41
#endif /* CATCOMP_NUMBERS */
/****************************************************************************/
#ifdef CATCOMP_STRINGS
#define MSG_MAINGADSOURCE_STR "Source"
#define MSG_MAINGADDEST_STR "Dest."
#define MSG_MAINGAD20_STR ""
#define MSG_MAINGAD30_STR ""
#define MSG_MAINGADARCHI_STR "Archivers"
#define MSG_MAINGADQUIT_STR "Quit"
#define MSG_MAINGADHIDE_STR "Hide"
#define MSG_MAINGADOK_STR "OK"
#define MSG_ARCHIGAD00_STR ""
#define MSG_ARCHIGADLIST_STR "Archivers List"
#define MSG_ARCHIGADOK_STR "_OK"
#define MSG_ARCHIGADDEL_STR "_Suppress"
#define MSG_ARCHIGADUSE_STR "_Use"
#define MSG_ARCHIGADADD_STR "_Add"
#define MSG_ARCHIGADSAVE_STR "Sa_ve"
#define MSG_ARCHIGADEDIT_STR "_Edit"
#define MSG_PREFSGADCANCEL_STR "C_ancel"
#define MSG_PREFSGADOK_STR "_OK"
#define MSG_PREFSGADEXT_STR "_Extension"
#define MSG_PREFSGADCOM_STR "_Command"
#define MSG_PREFSGADREP_STR "Di_rectory"
#define MSG_MAINASLSOURCE_STR "Search the source file to extract"
#define ERROR_MAINASLSOURCE_STR "Can't open the sourve file requester"
#define MSG_MAINASLDIR_STR "Search the directory name"
#define ERROR_MAINASLDIR_STR "Can't open the directory requester"
#define ERROR_MAINWINDOW_STR "Can't open the archivers window"
#define ERROR_MAINSOURCEFILE_STR "Can't find the source file"
#define ERROR_MAINDIR_STR "Unknown directory"
#define ERROR_MAINNOTEXT_STR "Unknown extension"
#define ERROR_MAINLIB_STR "V39 required"
#define ERROR_MAINSETUP_STR "Can't init boopsi gadgets"
#define ERROR_MAINWIND_STR "Can't open main window"
#define ERROR_MAINPORT_STR "Can't create the MsgPort"
#define ERROR_MAINBROKER_STR "Can't init broker"
#define ERROR_MAINHOTKEY_STR "Unknown Hotkey"
#define ERROR_MAINCOM_STR "Can't init commoditie"
#define MSG_TITLE_MAINWINDOW_STR "Archiver - Keys -> "
#define MSG_TITLE_ARCHIWINDOW_STR "Archivers List"
#define MSG_TITLE_PREFSWINDOW_STR "Preferences"
#define MSG_COPYRIGHT_STR "DeArch version 1.0 © Pat 1993"
#define MSG_USE_STR "An easy de-archiver under Intuition"
#define MSG_ACTIVE_STR "DeArch is already running, use Hotkeys or Exchange"
#endif /* CATCOMP_STRINGS */
/****************************************************************************/
#ifdef CATCOMP_ARRAY
struct CatCompArrayType
{
LONG cca_ID;
STRPTR cca_Str;
};
static const struct CatCompArrayType CatCompArray[] =
{
{MSG_MAINGADSOURCE,(STRPTR)MSG_MAINGADSOURCE_STR},
{MSG_MAINGADDEST,(STRPTR)MSG_MAINGADDEST_STR},
{MSG_MAINGAD20,(STRPTR)MSG_MAINGAD20_STR},
{MSG_MAINGAD30,(STRPTR)MSG_MAINGAD30_STR},
{MSG_MAINGADARCHI,(STRPTR)MSG_MAINGADARCHI_STR},
{MSG_MAINGADQUIT,(STRPTR)MSG_MAINGADQUIT_STR},
{MSG_MAINGADHIDE,(STRPTR)MSG_MAINGADHIDE_STR},
{MSG_MAINGADOK,(STRPTR)MSG_MAINGADOK_STR},
{MSG_ARCHIGAD00,(STRPTR)MSG_ARCHIGAD00_STR},
{MSG_ARCHIGADLIST,(STRPTR)MSG_ARCHIGADLIST_STR},
{MSG_ARCHIGADOK,(STRPTR)MSG_ARCHIGADOK_STR},
{MSG_ARCHIGADDEL,(STRPTR)MSG_ARCHIGADDEL_STR},
{MSG_ARCHIGADUSE,(STRPTR)MSG_ARCHIGADUSE_STR},
{MSG_ARCHIGADADD,(STRPTR)MSG_ARCHIGADADD_STR},
{MSG_ARCHIGADSAVE,(STRPTR)MSG_ARCHIGADSAVE_STR},
{MSG_ARCHIGADEDIT,(STRPTR)MSG_ARCHIGADEDIT_STR},
{MSG_PREFSGADCANCEL,(STRPTR)MSG_PREFSGADCANCEL_STR},
{MSG_PREFSGADOK,(STRPTR)MSG_PREFSGADOK_STR},
{MSG_PREFSGADEXT,(STRPTR)MSG_PREFSGADEXT_STR},
{MSG_PREFSGADCOM,(STRPTR)MSG_PREFSGADCOM_STR},
{MSG_PREFSGADREP,(STRPTR)MSG_PREFSGADREP_STR},
{MSG_MAINASLSOURCE,(STRPTR)MSG_MAINASLSOURCE_STR},
{ERROR_MAINASLSOURCE,(STRPTR)ERROR_MAINASLSOURCE_STR},
{MSG_MAINASLDIR,(STRPTR)MSG_MAINASLDIR_STR},
{ERROR_MAINASLDIR,(STRPTR)ERROR_MAINASLDIR_STR},
{ERROR_MAINWINDOW,(STRPTR)ERROR_MAINWINDOW_STR},
{ERROR_MAINSOURCEFILE,(STRPTR)ERROR_MAINSOURCEFILE_STR},
{ERROR_MAINDIR,(STRPTR)ERROR_MAINDIR_STR},
{ERROR_MAINNOTEXT,(STRPTR)ERROR_MAINNOTEXT_STR},
{ERROR_MAINLIB,(STRPTR)ERROR_MAINLIB_STR},
{ERROR_MAINSETUP,(STRPTR)ERROR_MAINSETUP_STR},
{ERROR_MAINWIND,(STRPTR)ERROR_MAINWIND_STR},
{ERROR_MAINPORT,(STRPTR)ERROR_MAINPORT_STR},
{ERROR_MAINBROKER,(STRPTR)ERROR_MAINBROKER_STR},
{ERROR_MAINHOTKEY,(STRPTR)ERROR_MAINHOTKEY_STR},
{ERROR_MAINCOM,(STRPTR)ERROR_MAINCOM_STR},
{MSG_TITLE_MAINWINDOW,(STRPTR)MSG_TITLE_MAINWINDOW_STR},
{MSG_TITLE_ARCHIWINDOW,(STRPTR)MSG_TITLE_ARCHIWINDOW_STR},
{MSG_TITLE_PREFSWINDOW,(STRPTR)MSG_TITLE_PREFSWINDOW_STR},
{MSG_COPYRIGHT,(STRPTR)MSG_COPYRIGHT_STR},
{MSG_USE,(STRPTR)MSG_USE_STR},
{MSG_ACTIVE,(STRPTR)MSG_ACTIVE_STR},
};
#endif /* CATCOMP_ARRAY */
/****************************************************************************/
#ifdef CATCOMP_BLOCK
static const char CatCompBlock[] =
{
"\x00\x00\x00\x00\x00\x08"
MSG_MAINGADSOURCE_STR "\x00\x00"
"\x00\x00\x00\x01\x00\x06"
MSG_MAINGADDEST_STR "\x00"
"\x00\x00\x00\x02\x00\x02"
MSG_MAINGAD20_STR "\x00\x00"
"\x00\x00\x00\x03\x00\x02"
MSG_MAINGAD30_STR "\x00\x00"
"\x00\x00\x00\x04\x00\x0A"
MSG_MAINGADARCHI_STR "\x00"
"\x00\x00\x00\x05\x00\x06"
MSG_MAINGADQUIT_STR "\x00\x00"
"\x00\x00\x00\x06\x00\x06"
MSG_MAINGADHIDE_STR "\x00\x00"
"\x00\x00\x00\x07\x00\x04"
MSG_MAINGADOK_STR "\x00\x00"
"\x00\x00\x00\x08\x00\x02"
MSG_ARCHIGAD00_STR "\x00\x00"
"\x00\x00\x00\x09\x00\x10"
MSG_ARCHIGADLIST_STR "\x00\x00"
"\x00\x00\x00\x0A\x00\x04"
MSG_ARCHIGADOK_STR "\x00"
"\x00\x00\x00\x0B\x00\x0A"
MSG_ARCHIGADDEL_STR "\x00"
"\x00\x00\x00\x0C\x00\x06"
MSG_ARCHIGADUSE_STR "\x00\x00"
"\x00\x00\x00\x0D\x00\x06"
MSG_ARCHIGADADD_STR "\x00\x00"
"\x00\x00\x00\x0E\x00\x06"
MSG_ARCHIGADSAVE_STR "\x00"
"\x00\x00\x00\x0F\x00\x06"
MSG_ARCHIGADEDIT_STR "\x00"
"\x00\x00\x00\x10\x00\x08"
MSG_PREFSGADCANCEL_STR "\x00"
"\x00\x00\x00\x11\x00\x04"
MSG_PREFSGADOK_STR "\x00"
"\x00\x00\x00\x12\x00\x0C"
MSG_PREFSGADEXT_STR "\x00\x00"
"\x00\x00\x00\x13\x00\x0A"
MSG_PREFSGADCOM_STR "\x00\x00"
"\x00\x00\x00\x14\x00\x0C"
MSG_PREFSGADREP_STR "\x00\x00"
"\x00\x00\x00\x15\x00\x22"
MSG_MAINASLSOURCE_STR "\x00"
"\x00\x00\x00\x16\x00\x26"
ERROR_MAINASLSOURCE_STR "\x00\x00"
"\x00\x00\x00\x17\x00\x1A"
MSG_MAINASLDIR_STR "\x00"
"\x00\x00\x00\x18\x00\x24"
ERROR_MAINASLDIR_STR "\x00\x00"
"\x00\x00\x00\x19\x00\x20"
ERROR_MAINWINDOW_STR "\x00"
"\x00\x00\x00\x1A\x00\x1C"
ERROR_MAINSOURCEFILE_STR "\x00\x00"
"\x00\x00\x00\x1B\x00\x12"
ERROR_MAINDIR_STR "\x00"
"\x00\x00\x00\x1C\x00\x12"
ERROR_MAINNOTEXT_STR "\x00"
"\x00\x00\x00\x1D\x00\x0E"
ERROR_MAINLIB_STR "\x00\x00"
"\x00\x00\x00\x1E\x00\x1A"
ERROR_MAINSETUP_STR "\x00"
"\x00\x00\x00\x1F\x00\x18"
ERROR_MAINWIND_STR "\x00\x00"
"\x00\x00\x00\x20\x00\x1A"
ERROR_MAINPORT_STR "\x00\x00"
"\x00\x00\x00\x21\x00\x12"
ERROR_MAINBROKER_STR "\x00"
"\x00\x00\x00\x22\x00\x10"
ERROR_MAINHOTKEY_STR "\x00\x00"
"\x00\x00\x00\x23\x00\x16"
ERROR_MAINCOM_STR "\x00"
"\x00\x00\x00\x24\x00\x14"
MSG_TITLE_MAINWINDOW_STR "\x00"
"\x00\x00\x00\x25\x00\x10"
MSG_TITLE_ARCHIWINDOW_STR "\x00\x00"
"\x00\x00\x00\x26\x00\x0C"
MSG_TITLE_PREFSWINDOW_STR "\x00"
"\x00\x00\x00\x27\x00\x1E"
MSG_COPYRIGHT_STR "\x00"
"\x00\x00\x00\x28\x00\x24"
MSG_USE_STR "\x00"
"\x00\x00\x00\x29\x00\x34"
MSG_ACTIVE_STR "\x00\x00"
};
#endif /* CATCOMP_BLOCK */
/****************************************************************************/
struct LocaleInfo
{
APTR li_LocaleBase;
APTR li_Catalog;
};
#ifdef CATCOMP_CODE
STRPTR GetString(struct LocaleInfo *li, LONG stringNum)
{
LONG *l;
UWORD *w;
STRPTR builtIn;
l = (LONG *)CatCompBlock;
while (*l != stringNum)
{
w = (UWORD *)((ULONG)l + 4);
l = (LONG *)((ULONG)l + (ULONG)*w + 6);
}
builtIn = (STRPTR)((ULONG)l + 6);
#define XLocaleBase LocaleBase
#define LocaleBase li->li_LocaleBase
if (LocaleBase)
return(GetCatalogStr(li->li_Catalog,stringNum,builtIn));
#define LocaleBase XLocaleBase
#undef XLocaleBase
return(builtIn);
}
#endif /* CATCOMP_CODE */
/****************************************************************************/
#endif /* DEARCH_STRINGS_H */